package com.imooc.mymall.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.imooc.mymall.util.LocalDateTimeStringConverter;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <h1>Excel导出实体类</h1>
 * @Author: crowsjian
 * @Date: 2020/7/17 23:58
 */
@Data
public class UserExportDTO implements Serializable {

    private static final long serialVersionUID = 2583455938119552292L;

    @ExcelProperty(value="用户名")
    private String username;
    @ExcelProperty(value="年龄")
    private Integer age;
    @ExcelProperty(value="版本号")
    private Long version;
    @ExcelProperty(value="创建时间",converter = LocalDateTimeStringConverter.class)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒SSS毫秒")
    private LocalDateTime created;
}
